package com.starinside.wp.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/13
 * *******************************
 */
@Data
@Entity
@Table(name = "children_coupon_card")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ChildrenCouponCard extends Domain {



    @Column(name = "childrenId", columnDefinition = "varchar(32) COMMENT '宝宝id'")
    private String childrenId;


    //0未使用 1已使用
    @Column(name = "status", columnDefinition = "int default 0 COMMENT ' 0未使用，1已使用'")
    private Integer status = 0;




    @ApiModelProperty("优惠卷码")
    @Column(name = "couponCard", columnDefinition = "varchar(244) COMMENT '优惠卷码'")
    private String couponCard;


    @ApiModelProperty("优惠卷码使用时间")
    @Column(name = "useTime", columnDefinition = "datetime COMMENT '优惠卷码使用时间'")
    private Date useTime;


    /**
     * 园区id
     */
    @ApiModelProperty(value = "园区id")
    @Column(name = "aid", columnDefinition = "varchar(32) COMMENT '园区id'")
    private String aid;

    @ApiModelProperty(value = "使用人")
    @Column(name = "userName", columnDefinition = "varchar(64) COMMENT '使用人'")
    private String userName;

}
